<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/warehouse/returnproduct_statistics_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/returnproduct_statistics/returnproduct_statistics_editEntity.shtml">
		<input type="hidden" class="form-control checkacc"
			value="${statistics.id}" name="productreturnFormMap.id" id="id">
		<input type="hidden" value="${statistics.packCount}" id="packCount"/>
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">日期</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.statisticsDate}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">仓位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.warehouse}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">物料编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.material_code}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户编号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.cid}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.cname}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">单位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.unit}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">模具编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.mold_code}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">长</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.length}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">宽</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.weight}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">高</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.height}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">体积</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.volume}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">通用件编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.commonCode}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">重量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.client_weight}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">每包件数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.orderPack}" id="orderPack"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">配套件数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.matingCases}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">已入库天数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						value="${statistics.storageDay}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">合格品数量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="qualifiedCount"
						name="productreturnFormMap.qualifiedCount" value="${statistics.qualifiedCount}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">废品数量（包数*每包件数-合格品数量）</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly id="abolishCount"
						name="productreturnFormMap.abolishCount" value="${statistics.abolishCount}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">标签打印数（打印一次还是多次？）</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh"
						name="productreturnFormMap.sLabelPrint" value="${statistics.sLabelPrint}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">剩余包数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh"
						name="productreturnFormMap.residuePack" value="${statistics.residuePack}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="productreturnFormMap.remark" value="${statistics.remark}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
		$(function() {
			$("#qualifiedCount").change(function() {
				var packCount = $("#packCount").val();
				var orderPack = $("#orderPack").val();
				var qualifiedCount=$("#qualifiedCount").val();
				$("#abolishCount").val(packCount*orderPack-qualifiedCount);
			});
		});
	</script>
</body>
</html>